
import { StatusBar } from 'expo-status-bar'

import { Stack } from "expo-router";
export default function RootMy() {
    return (
        <>
            <Stack>
                <Stack.Screen name="hotTrack" options={{
                    headerShown: true,
                    title: '热点追踪',//将文字放在中间
                    headerTitleAlign: 'center'
                }} />
                <Stack.Screen name="lectures" options={{
                    headerShown: true,
                    title: '名师讲堂',
                    headerTitleAlign: 'center'
                }} />
                <Stack.Screen name="feedback" options={{
                    headerShown: true,
                    title: '意见反馈',
                    headerTitleAlign: 'center'
                }} />
                <Stack.Screen name="detail" options={({ route }) => ({
                    headerShown: true,
                    title: route.params?.zhuititle || '详情',
                    headerTitleAlign: 'center'
                })} />
                <Stack.Screen name="doctorDetail" options={({ route }) => ({
                    headerShown: true,
                    title: route.params?.mingname || '详情',
                    headerTitleAlign: 'center'
                })} />
                <Stack.Screen name="doctorDetails" options={({ route }) => ({
                    headerShown: true,
                    title: route.params?.mingname || '详情',
                    headerTitleAlign: 'center'
                })} />
                <Stack.Screen name="chat" options={({ route }) => ({
                    headerShown: true,
                    title: route.params?.mingname || '详情',
                    headerTitleAlign: 'center'
                })} />
                <StatusBar backgroundColor='#161622' style='light' />
            </Stack>
        </>

    );
}
